#导包
import requests

#准备测试数据
url = "http://ihrm2-test.itheima.net/api/sys/login"
login_data = {
    "mobile":"13800000002",
    "password":"123456"
}

#向登录接口发送post请求
response = requests.post(url, json=login_data)

#打印返回结果
print(response.status_code)
print(response.text)
print(response.json()["success"])
print(response.json()["code"])
print(response.json()["message"])
print(response.json()["data"])